function [cap_diameter, cap_length] = FRAP_lsm_load_cap_dimensions(filename)
%% Import data from text file
% Script for importing data from the following text file:
%
%    filename: /Users/bknapp/Documents/FRAP_Data/221102_mitotracker_FRAP/bw25113_pad_1/imagej_outputs/FRAP_mitotracker_bw25113_200ms_4_cropped_ROI_cap_dimensions.csv
%
% Auto-generated by MATLAB on 04-Nov-2022 16:15:08

%% Setup the Import Options and import the data
opts = delimitedTextImportOptions("NumVariables", 7);

% Specify range and delimiter
opts.DataLines = [2, Inf];
opts.Delimiter = ",";

% Specify column names and types
opts.VariableNames = ["Var1", "Var2", "Var3", "Var4", "Var5", "Var6", "Length"];
opts.SelectedVariableNames = "Length";
opts.VariableTypes = ["string", "string", "string", "string", "string", "string", "double"];

% Specify file level properties
opts.ExtraColumnsRule = "ignore";
opts.EmptyLineRule = "read";

% Specify variable properties
opts = setvaropts(opts, ["Var1", "Var2", "Var3", "Var4", "Var5", "Var6"], "WhitespaceRule", "preserve");
opts = setvaropts(opts, ["Var1", "Var2", "Var3", "Var4", "Var5", "Var6"], "EmptyFieldRule", "auto");

% Import the data
tbl = readtable(filename, opts);

%% Convert to output type
Length = tbl.Length;
cap_diameter = Length(1);
cap_length = Length(2);

%% Clear temporary variables
clear opts tbl
end